//
//  TagCollectionViewCell.m
//  SimpleTimeDemo
//
//  Created by lanou3g on 15/11/18.
//  Copyright © 2015年 王丽珍. All rights reserved.
//

#import "TagCollectionViewCell.h"

@implementation TagCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        self.titleImageView = [[UIImageView alloc] initWithFrame:self.frame];
        self.backView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0  , 0, self.frame.size.width, self.frame.size.height)];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    self.titleImageView.alpha = 1;
    self.backgroundView = self.titleImageView;
    [self.contentView addSubview:self.titleImageView];
    
    self.backView.backgroundColor = [UIColor blackColor];
<<<<<<< HEAD
    self.backView.alpha = 0.7;
=======
    self.backView.alpha = 0.5;
>>>>>>> 807af8cc3ceab99a507a4b1858179a0050db9a12
    [self.contentView addSubview:self.backView];
    
    self.titleLabel.textColor = [UIColor whiteColor];
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    self.titleLabel.font = [UIFont fontWithName:@"ArialRoundedMTBold" size:13];
    [self.contentView addSubview:self.titleLabel];
}






- (void)awakeFromNib {
    // Initialization code
}

@end
